package com.strive.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.strive.common.model.dto.SysPower;
import com.strive.common.model.dto.SysPowerRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @description:
 * @author: bingcun.chen
 * @Date: 2022/2/23 14:57
 * @Version 1.0
 */
@Mapper
public interface SysPowerRoleMapper extends BaseMapper<SysPowerRole> {
    /**
     * 批量插入
     * @param id
     * @param powers
     * @return
     */
    int batchInsert(@Param("id") Long id,@Param("powers") Set<Long> powers);
}
